<?php
$title = 'Users';
$this->headTitle($title);
?>
<h1><?php echo $this->escapeHtml($title); ?></h1>
<p>
    <a href="<?php echo $this->url('user', array('action'=>'add'));?>">Add a new user</a>
</p>

<table class="table">
<tr>
    <th>Login</th>
    <th>First Name</th>
    <th>Last Name</th>
    <th>&nbsp;</th>
</tr>
<?php foreach ($users as $user) : ?>
<tr>
    <td><?php echo $this->escapeHtml($user->getLogin());?></td>
    <td><?php echo $this->escapeHtml($user->getFirstName());?></td>
    <td><?php echo $this->escapeHtml($user->getLastName());?></td>
    <td>
        <a href="<?php echo $this->url('user',
            array('action'=>'edit', 'id' => $user->getId()));?>">Edit</a>
        <a href="<?php echo $this->url('user',
            array('action'=>'delete', 'id' => $user->getId()));?>">Delete</a>
    </td>
</tr>
<?php endforeach; ?>
</table>